package com.design.mediator.traffic;

public class MediatorAirTrafficControlDemo {
    public static void main(String[] args) {
        AirTrafficControlCenter controlCenter = new AirTrafficControlCenter();

        Aircraft aircraft1 = new Aircraft("Flight 1", controlCenter);
        Aircraft aircraft2 = new Aircraft("Flight 2", controlCenter);

        aircraft1.requestLanding();
        aircraft2.requestLanding();
        aircraft1.grantLandingClearance();
    }
}
